<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Manage extends CI_Controller {

	function __construct()
	{
		parent::__construct();
		$this->thor->loginstate();
	}

	function index()
	{		
		$this->load->view('mang/manage');
	}
	
	function column()
	{
		$ePath = $this->input->get('path', TRUE);
		echo $this->_column($ePath);
	}
	
	function info()
	{
		$this->load->library('user_agent');
		$this->eData['eBrowser'] = $this->agent->browser();
		$this->eData['eVersion'] = $this->agent->version();
		$this->load->view('mang/manage_info', $this->eData);
	}
	
	function browser()
	{
		$this->load->library('user_agent');
		$this->eData['eBrowser'] = $this->agent->browser();
		$this->eData['eVersion'] = $this->agent->version();
		$this->load->view('mang/manage_browser', $this->eData);
	}
	
	function nbspMenu($ePath)
	{
		$ePathExp = explode('.', $ePath);
		$eNbspNum = '';
		foreach($ePathExp as $key => $item)
		{
			if($key > 1) $eNbspNum .= '&nbsp;&nbsp;&nbsp;';
		}
		
		return $eNbspNum;
	}
}